package de.cbf.cam.dsa.dataprovider.weapons;

import java.util.ArrayList;
import java.util.List;

import de.cbf.cam.dsa.model.entities.WeaponStyle;
import de.cbf.cam.dsa.model.entities.constants.WeaponStyleTemplates;
import de.cbf.cam.dsa.model.entities.weapon.WeaponMelee;

public class ProviderFencingWeapons {
	
	private static ProviderFencingWeapons instance = new ProviderFencingWeapons();
		
	public static ProviderFencingWeapons getInstance(){
		return instance;
	}
	
	public List<WeaponMelee> provideFencingWeapons(){
		List<WeaponMelee> resultList = new ArrayList<WeaponMelee>();
		resultList.add(provideStockdegen());
		
		return resultList;
	}
	
	private WeaponMelee provideStockdegen(){
		WeaponMelee weapon =new WeaponMelee();
		weapon.setWeaponType("Stockdegen");
		weapon.setTpDiceNumber(1);
		weapon.setTpDiceSides(6);
		weapon.setTpBonus(3);		
		weapon.setKKTreshold(12);
		weapon.setKKStep(5);
		weapon.setWeight(35);
		weapon.setWeapLength(80);
		weapon.setBf(4);
		weapon.setIniMod(0);
		weapon.setPrice(180);
		weapon.setWmAT(-1);
		weapon.setWmPA(-3);	
		weapon.setDkBits(WeaponMelee.DKN);
		weapon.setWear("");
		//weapon styles
		WeaponStyle style = WeaponStyleTemplates.provideFechtwaffen();
		style.setName("Stockdegen");
		
		weapon.addStyle(style);
		return weapon;
	}
}
